package com.lanou.quanttrade;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication
@EnableSwagger2
@MapperScan({"com.lanou.quanttrade.member.mapper","com.lanou.quanttrade.stock.mapper"})
public class QuantTradeApplication {

    public static void main(String[] args) {
        SpringApplication.run(QuantTradeApplication.class, args);
    }
    /**
     * 向spring注册RestTemplate工具
     * @return
     */
    @Bean
    public RestTemplate getRestTemplate(){
        return new RestTemplate();
    }
}
